<form method="post" action="/sys/auth/import" enctype="multipart/form-data" class="pageForm required-validate"
	  onsubmit="return iframeCallback(this, pageRefresh)">
	<input type="hidden" id="cmd5" name="cmd5" value="">
	<input type="hidden" id="uid" name="uid" value="">
	<input type="hidden" id="randomData" name="randomData" value="">
	<div class="ibox no-margins no-padding no-borders">
		<div class="ibox-title p-xs ljFixBoxTitle">
			<div class="btn btn-sm btn-primary pull-right" id="btnImportSubmit"><i class="fa fa-paste">保存</i></div>
		</div>
		<div style="height:40px;"></div>
		<div class="ibox-content">
			<div class="row p-xs">
				<div id="file-pretty">
					<div class="form-group">
						<label class="font-noraml">导入文件</label>
						<input name="file" type="file" class="form-control">
					</div>
				</div>
			</div>
		</div>
	</div>
</form>
<script>
	jQuery(function ($) {
		$('#file-pretty input[type="file"]').prettyFile();
		$("#btnImportSubmit").on("click", function () {
			var values = {};
			modifyVerf(values);
			$("#cmd5").val(values.cmd5);
			$("#uid").val(values.uid);
			$("#randomData").val(values.randomData);
			$(this).closest("form").submit();
		});
	});
</script>